package cn.patpang.app.service.impl;import cn.patpang.app.entity.Demo;import cn.patpang.core.framework.hibernate.BDCondition;import cn.patpang.core.framework.hibernate.BDParam;import cn.patpang.core.framework.hibernate.BaseDaoImpl;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Service;import java.util.List;/** * @Authoer: Pat Pang * @Date: 2018/6/18 下午9:04 * @Desc: */@Servicepublic class DemoServiceImpl {    @Autowired    private BaseDaoImpl baseDaoImpl;    public Demo save(Demo demo) {        return (Demo) baseDaoImpl.save(demo);    }    public List<Demo> list() {        return baseDaoImpl.listByHql(" from Demo ", BDParam.set(                BDCondition.set(BDCondition.K.AND_IN, "status", new Integer[]{0}),                BDCondition.set("parentId", 33)));    }}